package pl.edu.pjwstk.kor.model;

import java.util.ArrayList;
import java.util.List;

public class Customer extends Person {
	private static final long serialVersionUID = 1L;

	private String pesel;
	private String identityCardNumber;
	
	private Address liveAddress;
	private Address mailDropAddress;
	private String email;
	
	private List<Deal> deals = new ArrayList<Deal>();
	private List<Rank> ranks = new ArrayList<Rank>();
	
	public String getPesel() {
		return pesel;
	}
	
	public void setPesel(String pesel) {
		this.pesel = pesel;
	}
	
	public String getIdentityCardNumber() {
		return identityCardNumber;
	}
	
	public void setIdentityCardNumber(String identityCardNumber) {
		this.identityCardNumber = identityCardNumber;
	}
	
	public Address getLiveAddress() {
		return liveAddress;
	}
	
	public void setLiveAddress(Address liveAddress) {
		this.liveAddress = liveAddress;
	}
	
	public Address getMailDropAddress() {
		return mailDropAddress;
	}
	
	public void setMailDropAddress(Address mailDropAddress) {
		this.mailDropAddress = mailDropAddress;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public List<Deal> getDeals() {
		return deals;
	}
	
	public void setDeals(List<Deal> deals) {
		this.deals = deals;
	}

	public List<Rank> getRanks() {
		return ranks;
	}
	
	public void setRanks(List<Rank> ranks) {
		this.ranks = ranks;
	}

	@Override
	public String toString() {
		return "Customer [pesel=" + pesel + ", identityCardNumber="
				+ identityCardNumber + ", liveAddress=" + liveAddress
				+ ", mailDropAddress=" + mailDropAddress + ", email=" + email
				+ ", deals=" + (deals != null ? deals.size() : 0) + ", ranks=" + ranks + ", firstName="
				+ firstName + ", lastName=" + lastName + ", birthDate="
				+ birthDate + "]";
	}
}
